Integrand size = 21, antiderivative size = 473 \[ \int \frac {(a+b \arctan (c x))^2}{x^2 (d+e x)} \, dx=-\frac {i c (a+b \arctan (c x))^2}{d}-\frac {(a+b \arctan (c x))^2}{d x}-\frac {2 e (a+b \arctan (c x))^2 \text {arctanh}\left (1-\frac {2}{1+i c x}\right )}{d^2}-\frac {e (a+b \arctan (c x))^2 \log \left (\frac {2}{1-i c x}\right )}{d^2}+\frac {e (a+b \arctan (c x))^2 \log \left (\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{d^2}+\frac {2 b c (a+b \arctan (c x)) \log \left (2-\frac {2}{1-i c x}\right )}{d}+\frac {i b e (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2}{1-i c x}\right )}{d^2}-\frac {i b^2 c \operatorname {PolyLog}\left (2,-1+\frac {2}{1-i c x}\right )}{d}+\frac {i b e (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2}{1+i c x}\right )}{d^2}-\frac {i b e (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,-1+\frac {2}{1+i c x}\right )}{d^2}-\frac {i b e (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{d^2}-\frac {b^2 e \operatorname {PolyLog}\left (3,1-\frac {2}{1-i c x}\right )}{2 d^2}+\frac {b^2 e \operatorname {PolyLog}\left (3,1-\frac {2}{1+i c x}\right )}{2 d^2}-\frac {b^2 e \operatorname {PolyLog}\left (3,-1+\frac {2}{1+i c x}\right )}{2 d^2}+\frac {b^2 e \operatorname {PolyLog}\left (3,1-\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{2 d^2} \]
-I*c*(a+b*arctan(c*x))^2/d-(a+b*arctan(c*x))^2/d/x+2*e*(a+b*arctan(c*x))^2 *arctanh(-1+2/(1+I*c*x))/d^2-e*(a+b*arctan(c*x))^2*ln(2/(1-I*c*x))/d^2+e*( a+b*arctan(c*x))^2*ln(2*c*(e*x+d)/(c*d+I*e)/(1-I*c*x))/d^2+2*b*c*(a+b*arct an(c*x))*ln(2-2/(1-I*c*x))/d+I*b*e*(a+b*arctan(c*x))*polylog(2,1-2/(1-I*c* x))/d^2-I*b^2*c*polylog(2,-1+2/(1-I*c*x))/d+I*b*e*(a+b*arctan(c*x))*polylo g(2,1-2/(1+I*c*x))/d^2-I*b*e*(a+b*arctan(c*x))*polylog(2,-1+2/(1+I*c*x))/d ^2-I*b*e*(a+b*arctan(c*x))*polylog(2,1-2*c*(e*x+d)/(c*d+I*e)/(1-I*c*x))/d^ 2-1/2*b^2*e*polylog(3,1-2/(1-I*c*x))/d^2+1/2*b^2*e*polylog(3,1-2/(1+I*c*x) )/d^2-1/2*b^2*e*polylog(3,-1+2/(1+I*c*x))/d^2+1/2*b^2*e*polylog(3,1-2*c*(e *x+d)/(c*d+I*e)/(1-I*c*x))/d^2
\[ \int \frac {(a+b \arctan (c x))^2}{x^2 (d+e x)} \, dx=\int \frac {(a+b \arctan (c x))^2}{x^2 (d+e x)} \, dx \]
Time = 0.85 (sec) , antiderivative size = 473, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {5411, 2009}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {(a+b \arctan (c x))^2}{x^2 (d+e x)} \, dx\) |
\(\Big \downarrow \) 5411 |
\(\displaystyle \int \left (\frac {e^2 (a+b \arctan (c x))^2}{d^2 (d+e x)}-\frac {e (a+b \arctan (c x))^2}{d^2 x}+\frac {(a+b \arctan (c x))^2}{d x^2}\right )dx\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle -\frac {2 e \text {arctanh}\left (1-\frac {2}{1+i c x}\right ) (a+b \arctan (c x))^2}{d^2}+\frac {i b e \operatorname {PolyLog}\left (2,1-\frac {2}{1-i c x}\right ) (a+b \arctan (c x))}{d^2}+\frac {i b e \operatorname {PolyLog}\left (2,1-\frac {2}{i c x+1}\right ) (a+b \arctan (c x))}{d^2}-\frac {i b e \operatorname {PolyLog}\left (2,\frac {2}{i c x+1}-1\right ) (a+b \arctan (c x))}{d^2}-\frac {i b e (a+b \arctan (c x)) \operatorname {PolyLog}\left (2,1-\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{d^2}-\frac {e \log \left (\frac {2}{1-i c x}\right ) (a+b \arctan (c x))^2}{d^2}+\frac {e (a+b \arctan (c x))^2 \log \left (\frac {2 c (d+e x)}{(1-i c x) (c d+i e)}\right )}{d^2}-\frac {i c (a+b \arctan (c x))^2}{d}-\frac {(a+b \arctan (c x))^2}{d x}+\frac {2 b c \log \left (2-\frac {2}{1-i c x}\right ) (a+b \arctan (c x))}{d}-\frac {b^2 e \operatorname {PolyLog}\left (3,1-\frac {2}{1-i c x}\right )}{2 d^2}+\frac {b^2 e \operatorname {PolyLog}\left (3,1-\frac {2}{i c x+1}\right )}{2 d^2}-\frac {b^2 e \operatorname {PolyLog}\left (3,\frac {2}{i c x+1}-1\right )}{2 d^2}+\frac {b^2 e \operatorname {PolyLog}\left (3,1-\frac {2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{2 d^2}-\frac {i b^2 c \operatorname {PolyLog}\left (2,\frac {2}{1-i c x}-1\right )}{d}\) |
((-I)*c*(a + b*ArcTan[c*x])^2)/d - (a + b*ArcTan[c*x])^2/(d*x) - (2*e*(a + b*ArcTan[c*x])^2*ArcTanh[1 - 2/(1 + I*c*x)])/d^2 - (e*(a + b*ArcTan[c*x]) ^2*Log[2/(1 - I*c*x)])/d^2 + (e*(a + b*ArcTan[c*x])^2*Log[(2*c*(d + e*x))/ ((c*d + I*e)*(1 - I*c*x))])/d^2 + (2*b*c*(a + b*ArcTan[c*x])*Log[2 - 2/(1 - I*c*x)])/d + (I*b*e*(a + b*ArcTan[c*x])*PolyLog[2, 1 - 2/(1 - I*c*x)])/d ^2 - (I*b^2*c*PolyLog[2, -1 + 2/(1 - I*c*x)])/d + (I*b*e*(a + b*ArcTan[c*x ])*PolyLog[2, 1 - 2/(1 + I*c*x)])/d^2 - (I*b*e*(a + b*ArcTan[c*x])*PolyLog [2, -1 + 2/(1 + I*c*x)])/d^2 - (I*b*e*(a + b*ArcTan[c*x])*PolyLog[2, 1 - ( 2*c*(d + e*x))/((c*d + I*e)*(1 - I*c*x))])/d^2 - (b^2*e*PolyLog[3, 1 - 2/( 1 - I*c*x)])/(2*d^2) + (b^2*e*PolyLog[3, 1 - 2/(1 + I*c*x)])/(2*d^2) - (b^ 2*e*PolyLog[3, -1 + 2/(1 + I*c*x)])/(2*d^2) + (b^2*e*PolyLog[3, 1 - (2*c*( d + e*x))/((c*d + I*e)*(1 - I*c*x))])/(2*d^2)
3.2.46.3.1 Defintions of rubi rules used
Int[((a_.) + ArcTan[(c_.)*(x_)]*(b_.))^(p_.)*((f_.)*(x_))^(m_.)*((d_) + (e_ .)*(x_))^(q_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*ArcTan[c*x])^p, (f* x)^m*(d + e*x)^q, x], x] /; FreeQ[{a, b, c, d, e, f, m}, x] && IGtQ[p, 0] & & IntegerQ[q] && (GtQ[q, 0] || NeQ[a, 0] || IntegerQ[m])
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 18.14 (sec) , antiderivative size = 38040, normalized size of antiderivative = 80.42
method | result | size |
parts | \(\text {Expression too large to display}\) | \(38040\) |
derivativedivides | \(\text {Expression too large to display}\) | \(38050\) |
default | \(\text {Expression too large to display}\) | \(38050\) |
\[ \int \frac {(a+b \arctan (c x))^2}{x^2 (d+e x)} \, dx=\int { \frac {{\left (b \arctan \left (c x\right ) + a\right )}^{2}}{{\left (e x + d\right )} x^{2}} \,d x } \]
Timed out. \[ \int \frac {(a+b \arctan (c x))^2}{x^2 (d+e x)} \, dx=\text {Timed out} \]
\[ \int \frac {(a+b \arctan (c x))^2}{x^2 (d+e x)} \, dx=\int { \frac {{\left (b \arctan \left (c x\right ) + a\right )}^{2}}{{\left (e x + d\right )} x^{2}} \,d x } \]
a^2*(e*log(e*x + d)/d^2 - e*log(x)/d^2 - 1/(d*x)) - 1/16*(4*b^2*arctan(c*x )^2 - b^2*log(c^2*x^2 + 1)^2 - 16*d*x*integrate(1/16*(12*(b^2*c^2*d*x^2 + b^2*d)*arctan(c*x)^2 + (b^2*c^2*d*x^2 + b^2*d)*log(c^2*x^2 + 1)^2 + 8*(b^2 *c*d*x + 4*a*b*d + (4*a*b*c^2*d + b^2*c*e)*x^2)*arctan(c*x) - 4*(b^2*c^2*e *x^3 + b^2*c^2*d*x^2)*log(c^2*x^2 + 1))/(c^2*d*e*x^5 + c^2*d^2*x^4 + d*e*x ^3 + d^2*x^2), x))/(d*x)
\[ \int \frac {(a+b \arctan (c x))^2}{x^2 (d+e x)} \, dx=\int { \frac {{\left (b \arctan \left (c x\right ) + a\right )}^{2}}{{\left (e x + d\right )} x^{2}} \,d x } \]
Timed out. \[ \int \frac {(a+b \arctan (c x))^2}{x^2 (d+e x)} \, dx=\int \frac {{\left (a+b\,\mathrm {atan}\left (c\,x\right )\right )}^2}{x^2\,\left (d+e\,x\right )} \,d x \]